<script lang="ts" setup>
import { getListByConditions, urls } from '@/index';
import type { InfrastructureRelation } from '@/index.d';
import { useRequest } from 'vue-request';

const { data } = useRequest(() =>
  getListByConditions<InfrastructureRelation>(urls.infrastructureRelation, {})
);
</script>
<template>
  <el-option
    v-for="item in data"
    :key="item.id"
    :label="item.name"
    :value="item.name"
    v-bind="$attrs"
  />
</template>
